#ifndef __SUBSYSTEM_EGG_BLOCK_BEHAVIOR_H__
#define __SUBSYSTEM_EGG_BLOCK_BEHAVIOR_H__

#include <set>
#include <mutex>
#include "Engine/Point3.hpp"
#include "Subsystems/BlockBehaviors/SubsystemBlockBehavior.hpp"

using namespace PocketSurvival::Engine;

namespace PocketSurvival
{
    class GameRegistry;
    class GameRandom;
    class EggBlock;

    class SubsystemAnimalEntities;

    // 完成
    class SubsystemEggBlockBehavior : public SubsystemBlockBehavior
    {
    protected:
        EggBlock *m_eggBlock;

        SubsystemAnimalEntities *m_subsystemAnimalEntities;

    public:

        virtual bool onHitAsProjectile(std::shared_ptr<CellFace> cellFace, ComponentBody *componentBody, WorldItem *worldItem) override;
        virtual void load(const nlohmann::json& json) override;

        virtual const std::string& getName() const override;
    };
    
}

#endif
